﻿function sayMessage(message, category) {
    if (category) {
        console.info(category + ": " + message);
    } else {
        console.info(message);
    }
}

sayMessage("I's my first greeting");